import chardet
import sys
_ver = sys.version_info[0]

if _ver == 2:
    is_py2 = True
else:
    is_py3 = True

import json

if is_py2:
    print("py2 is not supported")
    sys.exit(1)

elif is_py3:
    from urllib.parse import urlparse, urlunparse, \
        urljoin, urlsplit, \
        urlencode, \
        quote, unquote, quote_plus, unquote_plus, \
        urldefrag
    from urllib.request import parse_http_list, \
        getproxies, proxy_bypass, proxy_bypass_environment, getproxies_environment
    from http import cookiejar as cookielib
    from http.cookies import Morsel
    
    from io import StringIO
    from collections import OrderedDict
    from collections.abc import Callable, Mapping, MutableMapping

    builtin_str =str
    str = str
    bytes = bytes
    basestring = (str, bytes)
    numerice_types = (int, float)
    integer_types = (int,)
